package com.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mapper.auto.MendaoTestReportMapper;
import com.model.auto.MendaoTestReport;
import com.service.IMendaoTestReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author astupidcoder
 * @since 2022-09-14
 */
@Service
public class MendaoTestReportServiceImpl extends ServiceImpl<MendaoTestReportMapper, MendaoTestReport> implements IMendaoTestReportService {
    @Autowired
    private MendaoTestReportMapper mendaoTestReportMapper;

    @Override
    public MendaoTestReport findOne(Long id) {
        return mendaoTestReportMapper.findOne(id);
    }

    @Override
    public List<MendaoTestReport> getListByTestId(long testId) {
        return mendaoTestReportMapper.getListByTestId(testId);
    }

    @Override
    public void insertDate(MendaoTestReport testReport) {
        mendaoTestReportMapper.insertDate(testReport);
    }

    @Override
    public void updateDate(MendaoTestReport testReport) {
        mendaoTestReportMapper.updateDate(testReport);
    }
}
